// 判断提示,text提示内容，condition条件
const hasHintDialog = function(text, condition) {
	if(condition) {
        this.$alert(text, '提示', {
            confirmButtonText: '确定',
            callback: action => {}
        });
        return false
    }
    return true
}
// 深拷贝
const deepCopy = (function deepCopy(data){
    let obj = Array.isArray(data)? [] : {}
    if(typeof data !== "object") return data;
    for(let k in data){
         obj[k] = deepCopy(data[k])            
    }
    return obj    
})
export default {
	hasHintDialog,
	deepCopy
}